import request from '@/utils/request'

/**
 * @Author wssn
 * @Description  顶部数据统计
 * @Date 17:28 2022/7/4
 **/
export function deviceHeadDate(data) {
  return request({
    url: '/device/board/dataBoard/deviceHeadDate',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  设备紧急程度分布
 * @Date 17:28 2022/7/4
 **/
export function deviceEmergencyDegreeDistribution(data) {
  return request({
    url: '/device/board/dataBoard/deviceEmergencyDegreeDistribution',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  点检计划完成率
 * @Date 17:28 2022/7/4
 **/
export function deviceCheckPlanCompletedRatio(data) {
  return request({
    url: '/device/board/dataBoard/deviceCheckPlanCompletedRatio',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  维修费用统计
 * @Date 17:28 2022/7/4
 **/
export function deviceMaintenanceCostStatistics(data) {
  return request({
    url: '/device/board/dataBoard/deviceMaintenanceCostStatistics',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  备件消耗排行
 * @Date 17:28 2022/7/4
 **/
export function deviceSparePartsConsumptionRanking(data) {
  return request({
    url: '/device/board/dataBoard/deviceSparePartsConsumptionRanking',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  设备位置分布
 * @Date 17:29 2022/7/4
 **/
export function deviceLocationDistribution(data) {
  return request({
    url: '/device/board/dataBoard/deviceLocationDistribution',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  保养计划及时率
 * @Date 17:29 2022/7/4
 **/
export function deviceMaintainPlanTimelinessRate(data) {
  return request({
    url: '/device/board/dataBoard/deviceMaintainPlanTimelinessRate',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  故障类型
 * @Date 17:29 2022/7/4
 **/
export function deviceRepairTypeDistribution(data) {
  return request({
    url: '/device/board/dataBoard/deviceRepairTypeDistribution',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description  任务统计
 * @Date 17:29 2022/7/4
 **/
export function deviceTaskStatistics(data) {
  return request({
    url: '/device/board/dataBoard/deviceTaskStatistics',
    method: 'post',
    data: data
  })
}

/**
 * @Author wssn
 * @Description 获取温湿度信息
 * @Date 2024/5/7 19:18
 */
export function getTemperature(data) {
  return request({
    url: '/iot/iot/getTemperature',
    method: 'post',
    data: data
  })
}
